package com.oa.co.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author zhao chen qi
 * @date 2023/5/9 22:23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LeaveInformationVo {
    @ExcelProperty(value = "编号")
    /*@ColumnWidth
	 value    指定 列宽*/
    @ColumnWidth(value = 20)
    private Integer id;

    @ExcelProperty(value = "申请人")
    @ColumnWidth(value = 20)
    private String applicant;


    @ExcelProperty(value = "具体原因")
    @ColumnWidth(value = 20)
    private String reason_for_leave;

    @ExcelProperty(value = "所属部门")
    @ColumnWidth(value = 20)
    private String subordinate_department;



    @ExcelProperty(value = "请假原因")
    @ColumnWidth(value = 20)
    private String t_name;

    @ExcelProperty(value = "请假日期")
    @DateTimeFormat("yyyy-MM-dd")
    @ColumnWidth(value = 20)
    private Date creation_time;
}
